import axios from 'axios';
import 'isomorphic-fetch'
const intance = axios.create({
    baseURL: "http://localhost:3000",
    timeout: 5000
})

intance.interceptors.request.use(
    config => {
        return config
    }, err => {
        return Promise.reject(err)
    })

intance.interceptors.response.use(res => {
    return res
}, err => {
    return Promise.reject(err)
})

export default intance